#ifndef DRUMCHOOSE_H
#define DRUMCHOOSE_H

#include <QWidget>
#include<qlistwidget.h>
#include<qmediaplayer.h>
#include<qmediaplaylist.h>
#include<qpushbutton.h>
class MainWindow;
namespace Ui {
class drumChoose;
}

class drumChoose : public QWidget
{
    Q_OBJECT

public:
    explicit drumChoose(QWidget *parent = nullptr,MainWindow *p=nullptr);
    ~drumChoose();

private:
    Ui::drumChoose *ui;
    QListWidget *myList;
    QListWidgetItem *items[3];
    MainWindow *parentPtr;//信息传递
    QMediaPlayer *plr;
    QMediaPlaylist *playlist;
    QPushButton *playpb;

private slots:
    void drumSlot();
    void playSlot();
};

#endif // DRUMCHOOSE_H
